package feng.iLocator.Domain;

import com.baidu.mapapi.BMapManager;
import com.baidu.mapapi.MKEvent;
import com.baidu.mapapi.MKGeneralListener;

import android.app.Application;

public class BaiduMapManager extends Application 
{
	public static final String BAIDU_KEY = "8C530589D4AFB1A344A9384E92B4FC377E3F9FAC";
	public BMapManager mBMapMan = null;

	@Override
    public void onCreate() 
	{
		mBMapMan = new BMapManager (this);
		mBMapMan.init(BAIDU_KEY, new MyGeneralListener());
	}
	
	public static class MyGeneralListener implements MKGeneralListener 
	{
		@Override
		public void onGetNetworkState(int iError) {}

		@Override
		public void onGetPermissionState(int iError) 
		{
			if (iError ==  MKEvent.ERROR_PERMISSION_DENIED) 
			{
				// TODO --
			}
		}
		
	}
	
}